package com.cn.por.auto.dto;

import java.util.List;

/**
 * xml文件对应数据模型类
 * @author wen
 *
 */
public class MapperDataModel extends DataModel{
	/**
	 * 命名空间
	 */
	protected String namespace;
	
	
	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	public String getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(String primaryKey) {
		this.primaryKey = primaryKey;
	}

	public String getPrimaryName() {
		return primaryName;
	}

	public void setPrimaryName(String primaryName) {
		this.primaryName = primaryName;
	}

	public List<MapperRelation> getMapperRelations() {
		return mapperRelations;
	}

	public void setMapperRelations(List<MapperRelation> mapperRelations) {
		this.mapperRelations = mapperRelations;
	}

	public List<CommonComponent> getSelectComponents() {
		return selectComponents;
	}

	public void setSelectComponents(List<CommonComponent> selectComponents) {
		this.selectComponents = selectComponents;
	}

	public CommonComponent getUpdateComponents() {
		return updateComponents;
	}

	public void setUpdateComponents(CommonComponent updateComponents) {
		this.updateComponents = updateComponents;
	}

	public CommonComponent getAddComponents() {
		return addComponents;
	}

	public void setAddComponents(CommonComponent addComponents) {
		this.addComponents = addComponents;
	}

	/**
	 * 表主键
	 */
	protected String primaryKey;
	
	protected String primaryName;
	
	/**
	 * 数据库表字段与属性的映射关系
	 */
	protected List<MapperRelation> mapperRelations;
	/**
	 * 查询组件
	 */
	protected List<CommonComponent> selectComponents;

	protected List<CommonComponent> selectPageComponents;

	/**
	 * 更新组件
	 */
	protected CommonComponent updateComponents;
	/**
	 * 新增组件
	 */
	protected CommonComponent addComponents;

	private CommonComponent selectPage;

	public CommonComponent getSelectPage() {
		return selectPage;
	}

	public void setSelectPage(CommonComponent selectPage) {
		this.selectPage = selectPage;
	}

	public MapperDataModel() {}

	public List<CommonComponent> getSelectPageComponents() {
		return selectPageComponents;
	}

	public void setSelectPageComponents(List<CommonComponent> selectPageComponents) {
		this.selectPageComponents = selectPageComponents;
	}
}
